package io.github.yidasanqian.defaultmethod;

public class C implements A, B {
    public static void main(String[] args) {
        A obj = new C();
        obj.hello();    //调用B的方法
        obj.foo();
        obj.doSomething();
        A.statichello();
    }

    @Override
    public void doSomething() {

        System.out.println("c object need do something");
    }
}
